These scripts are all JavaScript games. Play the classic games Mastermind or Tic-Tac-Toe or any one of the dozen other games. If you plan to use these scripts, please remember that these scripts have some of the longest and most complicated source codes of any scripts in our archives. (Only modify these scripts if you are sure you know what you are doing!) Every entry now also has a Source Code option so you may see the EXACT JavaScript code used to create the game.


Title: Ants
Contributor: Mike Hall (MHall75819@aol.com)
Contributor URL: http://members.aol.com/MHall75819
Details: 10.57 KB * Uploaded July 8 1999
Description: As you move your mouse around the page a swarming army of ants scattered about the window will chase after it. (No wisecracks about buggy code now...) If an ant actually reaches the mouse cursor, we reposition it randomly around the edge of the window, and its chase starts again. The ant images are preloaded with a great image loading bar script, then the script begins. A great effect!

[ Get Source Code ]


Title: Ask Mustafa
Contributor: Hoop Hooper (hooper119@aol.com)
Contributor URL: http://www.angelfire.com/pa3/muddas
Details: 2.32 KB * Uploaded July 17 2000
Description: We've captured the spy Mustafa from the Austin Powers movie. Mustafa will refuse to answer any question you ask. Except, he hates hearing the same question three times in a row. Ask him a question three times in a row and he will answer you. Fun!

[ Get Source Code ]


Title: Background Fader
Details: 1.81 KB * Uploaded July 11 1997
Description: Use JavaScript to fade the background from red to black, and back.

[ Get Source Code ]


Title: Battleship
Contributor: Jason Hotchkiss (jasonhotchkiss@home.com)
Contributor URL: http://www.members.home.com/jasonhotchkiss
Details: 9.06 KB * Uploaded December 15 1999
Description: Enter into a naval battle against your computer. But watch out, your adversary is not stupid!

[ Get Source Code ]


Title: Blackjack
Contributor: Mike McGrath (mike_mcgrath@lineone.net)
Details: 4.57 KB * Uploaded March 3 1999
Description: Play even the classic game of Blackjack in JavaScript! (You might also know it as "21") The object of the game is to get the closest to 21. If you get higher than the dealer without going over, you win! Good luck, and don't gamble. ;-)

[ Get Source Code ]


Title: Box Puzzle
Contributor: John Chacko (johns221b@yahoo.com)
Contributor URL: http://holmes221b.50megs.com
Details: 5.44 KB * Uploaded November 14 2000
Description: (Internet Explorer Only) Move the squares using the arrow keys to get them in the correct order. Fun!

[ Get Source Code ]


Title: Break Out
Contributor: Nick Young (ywing9787@aol.com)
Contributor URL: http://www.angelfire.com/biz6/ywing9787
Details: 12.64 KB * Uploaded April 19 2000
Description: This is a JavaScript version of Break Out. Keep the ball bouncing and try to clear the entire field of blocks. Cool!

[ Get Source Code ]


Title: Bridge
Contributor: Randy Bennett (randyben@avalon.nf.ca)
Contributor URL: http://home.thezone.net/~rbennett/utility/javahead.htm
Details: 3.44 KB * Uploaded March 31 1998
Description: Here is an interesting use of JavaScript, deal a hand of Bridge! Each time you load the page JavaScript will "deal" a new hand to four players. Very neat!

[ Get Source Code ]


Title: Buzzwords
Details: 4.99 KB * Uploaded July 11 1997
Description: JavaScript takes a word you provide and puts it in a complex sentence.

[ Get Source Code ]


Title: Catch A Spy
Contributor: Kien Caoxuan (kcaoxuan@caoxuan.com)
Contributor URL: http://www.caoxuan.com
Details: 9.65 KB * Uploaded August 1 2000
Description: You are an Interpol officer who needs to track down the movement of the Green Spy. He moves around the world in a predictable pattern. Learn his moves. Once you're in the same airport with the Green Spy, you win! Aim for the shortest time. Good luck!

[ Get Source Code ]


Title: CheckBoxes
Details: 1.63 KB * Uploaded July 15 1997
Description: Just how many boxes can you check in 20 seconds? Play this interesting JavaScript game and find out.

[ Get Source Code ]


Title: Concentration
Contributor: Brian Gosselin (bgaudiodr@aol.com)
Contributor URL: http://www.bgaudiodr.iwarp.com
Details: 3.63 KB * Uploaded June 19 2000
Description: My version of the classic memory game concentration. Uncover all the blocks by successfully matching the image pairs. Click the Timer button below to start a new game whenever you want.

[ Get Source Code ]


Title: Connect 4
Contributor: Stuart Berg (stuart.berg@usa.net)
Details: 17.21 KB * Uploaded May 1 2000
Description: This is a JavaScript version of 2 player Connect 4. Players take turns dropping pieces into the columns of the board. The computer tracks wins and draws automatically individually a game or match set. Awesome!

[ Get Source Code ]


Title: Countdown to ???
Details: 2.21 KB * Uploaded July 11 1997
Description: A JavaScript stopwatch that counts down from a predetermined time then alerts the user.

[ Get Source Code ]


Title: Countup to ???
Details: 2.14 KB * Uploaded July 11 1997
Description: A JavaScript stopwatch that does the opposite - counts up then alerts.

[ Get Source Code ]


Title: Crab Race
Contributor: Mike McGrath (mike_mcgrath@lineone.net)
Contributor URL: http://website.lineone.net/~mike_mcgrath
Details: 10.80 KB * Uploaded September 9 1999
Description: Places your bets on your favorite colored crab in a virtual crab race. Each crab has different odds and has different payouts. Good luck!

[ Get Source Code ]


Title: CurseBot
Details: 11.70 KB * Uploaded July 15 1997
Description: JavaScript uses the dynamic random() function to write random curses. Users may collect as many curse phrases as they want, or can endure. The CurseBot keeps 'em coming!

[ Get Source Code ]


Title: Decoder Ring
Contributor: Colin Russell (niloc12@hotmail.com)
Contributor URL: http://www.geocities.com/niloc12.geo
Details: 4.59 KB * Uploaded March 15 2000
Description: Playing spy games are always fun -- but why not act the part? This decoder ring script allows you to send 'spy' messages back and forth by encoding your message with a key offset value. Then, just send the message, key code, and a link to the decoder ring script to your friend to let them read it. Understandably, it's simple encryption, but it works good enough for us! Cool!

[ Get Source Code ]


Title: Dice Roller
Contributor:Michael Hensley (yelsneh@geocities.com)
Contributor URL: http://geocities.com/TimesSquare/Castle/6274
Details: 4.44 KB * Uploaded May 29 1998
Description: A great script! Check it out!

[ Get Source Code ]


Title: Dots
Contributor: Mike McGrath (mike_mcgrath@lineone.net)
Details: 34.20 KB * Uploaded August 20 1999
Description: Make more boxes than the computer to win this interactive JavaScript game. Neat!

[ Get Source Code ]


Title: Face Memory
Contributor: Kien Caoxuan (kcaoxuan@caoxuan.com)
Contributor URL: http://www.caoxuan.com
Details: 7.83 KB * Uploaded September 18 2000
Description: See how well you can do in trying to remember a random face. Addictive!

[ Get Source Code ]


Title: Falcon Fighter
Details: 30.00 KB * Uploaded September 16 1999
Description: An extremely amazing JavaScript air fighter game that looks just like an arcade game! It is absolutely amazing! You have to give it a try to understand. You can move the fighter plane with the J, K, L, and I keys and shoot at the enemy planes with Z, and X keys. You only get one life but if you make it far through a level, you play against big enemy bosses. Wow, color me impressed.

[ Get Source Code ]


Title: Find The Spy
Details: 5.81 KB * Uploaded July 15 1997
Description: A spy is hidden in this field. Start choosing locations and see if you can find the spy!

[ Get Source Code ]


Title: Flipping Messages
Details: 2.62 KB * Uploaded July 11 1997
Description: When given a text box, JavaScript can flash messages in it. Similar to a scroll, but no scrolling is involved - otherwise it would be a scroll, not a game :)

[ Get Source Code ]


Title: Fortune Teller
Contributor: Ronnie T. Moore, Editor
Contributor URL: JavaScript Source Code 2002
Details: 1.27 KB * Uploaded June 12 2000
Description: Just ask a yes or no question and the JavaScript fortune teller will reply. Neat!

[ Get Source Code ]


Title: Guess-A-Number
Details: 2.16 KB * Uploaded July 15 1997
Description: Play the JavaScript version of Guess-A-Number. First, select a number range and then try to guess the number the computer has chosen.

[ Get Source Code ]


Title: Guess 1 - 100
Details: 2.55 KB * Uploaded July 15 1997
Description: Another JavaScript guess-a-number game. However, this one automatically has a set range of 1 - 100.

[ Get Source Code ]


Title: Hangman
Details: 6.31 KB * Uploaded May 29 1998
Description: I know you've all played Hangman before.... You know, you try to guess a word by choosing letters? Well, how about a game of Hangman, in JavaScript! Very neat! (The topic is Presidents of The United States!)

[ Get Source Code ]


Title: Hanoi Solver
Contributor: Amin Wong (aminwong@hotmail.com)
Details: 3.51 KB * Uploaded July 21 2000
Description: Solves the Towers of Hanoi game in the shortest number of moves, demo included. The delay between moves and the number of rings can be adjusted by the user. Clever!

[ Get Source Code ]


Title: Hit The Dot
Contributor:Josh Birk (jbirk@kent.edu)
Contributor URL: http://www.mcs.kent.edu/~jbirk
Details: 8.18 KB * Uploaded June 26 1998
Description: How many dots do you think you can hit in 30 seconds? Play this interesting JavaScript game and find out!

[ Get Source Code ]


Title: Insight Generator
Details: 4.16 KB * Uploaded July 15 1997
Description: If you need a profound quote or insight for an upcoming speech, interview, cocktail party or whatever, try the Insight Generator. If you don't like the first generated profundity, click again for a whole new one. Just keep going until you find a quote that suits whatever the occasion requires.

[ Get Source Code ]


Title: Joggle
Contributor: Serban Oprescu (serban@pixelsharp.com)
Details: 9.73 KB * Uploaded March 30 2000
Description: An online version of Boggle, where the objective is to find words in a 5x5 letter grid. Joggle takes advantage of ASP and SQL (rather than JavaScript) to score words using a 100,000 word dictionary. Great fun!

[ Get Source Code ]


Title: Lights Out
Contributor: Andrew Gacek (andrew@dgi.net)
Details: 5.86 KB * Uploaded August 26 1999
Description: Try to eliminate all the boxes to win. When you check a box, all the squares around it (one above, one below, and one to each side) are unselected. You can play in five different levels of difficulty. Addictive!

[ Get Source Code ]


Title: Love Test
Details: 2.65 KB * Uploaded March 2 1999
Description: Here's a neat little script to figure the "love compatibility" between two people. Just enter their names and hit calculate! We are not responsible for any broken relationships resulting from this script. ;-)

[ Get Source Code ]


Title: Lottery Numbers
Details: 1.91 KB * Uploaded August 30 1999
Description: This JavaScript will help you pick your lottery numbers. Pick how many numbers you want (pick 3 ?) and then give it a number range and out comes your lottery numbers! Try it!

[ Get Source Code ]


Title: Mad Cows
Details: 6.63 KB * Uploaded July 15 1997
Description: Play a very humorous game involving three talking cows. Check it out - it's very cool.

[ Get Source Code ]


Title: Magic 8 Ball
Details: 2.07 KB * Uploaded August 4 1997
Description: Ever wanted to play with a JavaScript Magic 8 Ball? Well, here is a fully functional, and totally random, JavaScript Magic 8 Ball. Enjoy.

[ Get Source Code ]


Title: Magic Squares
Details: 3.34 KB * Uploaded May 1 1998
Description: Here is a fun JavaScript game. Try to put the squares back in order. The '0' repesents the empty spot, and click a square next to the 0 to make them trade places! Get the squares back in order and you win!

[ Get Source Code ]


Title: Math Quiz
Contributor: Anja Henseler
Details: 3.61 KB * Uploaded June 21 1999
Description: Flash cards were pretty good math practice. But, they were always the same math problems, over and over. Lo and behold, JavaScript to the rescue! Just select the difficulty level then click the type of problem you want to practice with, (add, subtract, multiply, and divide) and JavaScript will give you a problem. And, a built-in score checker grades you along the way! Great practice for elementary-aged students just learning their math skills, or for anyone wishing to practice a bit!

[ Get Source Code ]


Title: Maze
Contributor: Jason Hotchkiss (jasonhotchkiss@home.com)
Details: 10.58 KB * Uploaded December 6 1999
Description: Navigate around a 3D JavaScript maze in search of the exit in the fewest moves possible. The maze is complex, but you can cheat by taking a peak at the map. Tested in IE5 and Netscape.

[ Get Source Code ]


Title: Mind Reader
Contributor: Darren Cummings
Contributor URL: www.spen500.fsnet.co.uk
Details: 3.87 KB * Uploaded November 13 2000
Description: (Internet Explorer Only) Think of a number between 1 and 63 and answer YES or NO to the questions. The Mind Reader will tell you the number. Amazing!

[ Get Source Code ]


Title: Minesweeper
Contributor: Peter Occil (poccil@yahoo.com)
Contributor URL: http://www.geocities.com/poccil
Details: 15.73 KB * Uploaded May 16 2000
Description: Don't have Windows Minesweeper game on your computer at work or school? Think again! Play this JavaScript-powered version which acts just like the Windows version and even supports custom-sized grids. And use Control+Click to flag a mine. Sweet!

[ Get Source Code ]


Title: Mouse Bomb
Contributor: Diana Ugo (ugo76@libero.it)
Contributor URL: http://utenti.tripod.it/falcons
Details: 2.27 KB * Uploaded September 12 2000
Description: A bomb follows your mouse cursor around the screen and explodes when it reaches your cursor. Cool.

[ Get Source Code ]


Title: Mouse Invaders
Contributor: Juan Ignacio Garcia (jigarcia@topmail.com.ar)
Contributor URL: http://ignac.homepage.com
Details: 6.61 KB * Uploaded September 13 2000
Description: Three UFOs chase your mouse cursor around the screen. If they get close enough, they even fire at it. Hilarious!

[ Get Source Code ]


Title: Mr. Potato Head
Contributor:Michael Tartaglia (stonedstan@hotmail.com)
Contributor URL: http://www.geocities.com/SiliconValley/Horizon/5235
Details: 2.49 KB * Uploaded August 24 1998
Description: Play a good old game of Mr. Potato Head - powered by JavaScript, of course! Click buttons to change the hair, eyes, nose, and mouth! And, click the "View It" button to see Mr. Potato Head!

[ Get Source Code ]


Title: Peg
Contributor:Erik Gos (erik.gos@hiva.kuleuven.ac.be)
Details: 29.10 KB * Uploaded August 18 1998
Description: An interesting little JavaScript game where you try to leave only one peg by jumping one over another and removing the 'jumped' peg. Sound easy? See how well you can do!

[ Get Source Code ]


Title: Picture Memory
Contributor: Kien Caoxuan (kcaoxuan@caoxuan.com)
Contributor URL: http://www.caoxuan.com
Details: 4.62 KB * Uploaded August 10 2000
Description: Take your time and study the underwater picture very carefully. When you are ready, start the memory test. The game will ask you where you saw the pieces. See if you can get all 15 right! Not as easy as it sounds!

[ Get Source Code ]


Title: Picture Puzzle
Contributor: Davey Erwin (daverwin@hotmail.com)
Contributor URL: http://daverwin.homepage.com
Details: 11.50 KB * Uploaded May 8 2000
Description: The classic mix-up puzzle that uses any image you want. Your image is 'cut' into puzzle pieces and left to be scrambled then solved by your visitors. (This script uses Dan Steinman's Dynapi code.)

[ Get Source Code ]


Title: Pokemon
Contributor: Paul (Poke_Paul@hotmail.com)
Contributor URL: http://www.angelfire.com/ak3/MewHiddenLair
Details: 9.71 KB * Uploaded August 19 1999
Description: An interactive version of Pokemon which allows you to raise your very own Pikachu! Try it!

[ Get Source Code ]


Title: Pokemon Invaders
Contributor: Sam Dodge (nancied@mac.com)
Contributor URL: http://raichusscastle.hypermart.net
Details: 5.64 KB * Uploaded May 26 2000
Description: Try your luck as a pokemon protecting the world against an invading enemy squad.

[ Get Source Code ]


Title: Random Number
Details: 2.75 KB * Uploaded July 11 1997
Description: The computer will thinks of a random number between 0 and 49. Just guess it! Higher and lower hints included!

[ Get Source Code ]


Title: Reaction - Button
Details: 2.87 KB * Uploaded July 15 1997
Description: (Netscape only) Just how fast can you react? Play this little JavaScript wonder and find out.

[ Get Source Code ]


Title: Reaction - Background
Details: 2.91 KB * Uploaded July 15 1997
Description: (Netscape only) Just how fast can you react? Play this little JavaScript wonder and find out. In this example, you react when the background changes color instead of dealing with a button.

[ Get Source Code ]


Title: Rock, Paper, Scissors
Contributor: Ronnie T. Moore, Editor
Contributor URL: JavaScript Source Code 2002
Details: 2.66 KB * Uploaded April 25 2000
Description: Play Rock, Paper, Scissors against your computer. Make your selection and the computer will randomly choose as well and then the game will be scored. Fun!

[ Get Source Code ]


Title: Rocket Blaster
Contributor: Brian Gosselin (bgaudiodr@aol.com)
Contributor URL: http://www.bgaudiodr.iwarp.com
Details: 9.26 KB * Uploaded August 9 2000
Description: Use your mouse to aim and shoot at rockets that fly across the screen. It may require some practice timing the shots to compensate for the distances. Interestingly, the game never ends -- just play as long as you want. Sweet!

[ Get Source Code ]


Title: Shift It
Contributor: Dion
Contributor URL: http://www.iinet.net.au/~biab/
Details: 1.46 KB * Uploaded December 28 1998
Description: Play this addictive little JavaScript game - try to put all the pieces in alphabetical order, 'A' through 'O'. Awesome!

[ Get Source Code ]


Title: Simon Says
Contributor: Brian Gosselin (bgaudiodr@aol.com)
Contributor URL: http://www.bgaudiodr.iwarp.com
Details: 4.21 KB * Uploaded January 6 2000
Description: Recall your childhood with a JavaScript version of Simon Says. Click the buttons in the same order as Simon (the computer) does to advance to the next level. Each level gets increasingly difficult. See how far you can go.

[ Get Source Code ]


Title: Snake
Contributor: Clayton Carlson (clayton@awebmaker.com)
Contributor URL: http://www.awebmaker.com
Details: 4.90 KB * Uploaded August 22 2000
Description: (Internet Explorer Only) A one player game where the point is to direct the snake to the apples. For each apple you eat, you earn points and the snake grows longer. Don't run into your own tail or the walls and see how many points you can earn!

[ Get Source Code ]


Title: Text Animation
Contributor URL:  http://www.crosswinds.net/~llizard
Details: 3.03 KB * Uploaded October 12 1999
Description: Check out this JavaScript-powered text animation artwork. A cheerleader runs through her entire routine. Wow.

[ Get Source Code ]


Title: Tic-Tac-Toe
Contributor: Maximilian Stocker (maxstocker@reallyusefulcomputing.com)
Details: 9.05 KB * Uploaded July 28 1999
Description: Try your luck at an interactive game of good old tic-tac-toe!! Automatic scoring and alternating "first moves" are built in. Fun!

[ Get Source Code ]


Title: Time Challenge
Contributor: Randy Bennett (rbennett@thezone.net)
Contributor URL: http://home.thezone.net/~rbennett/sitemap.htm
Details: 4.33 KB * Uploaded April 27 2000
Description: Start the game timer and try to click the button in exactly 10 seconds. It is not easy as you think!

[ Get Source Code ]


Title: Towers of Hanoi
Contributor: Adam Stock (adam@digital-biz.com)
Details: 8.91 KB * Uploaded November 5 1999
Description: See how you do in this wonderful game of skill and logic. Try to move all the disks onto another pole. Thing is, you can only move one disk at a time and you must follow size order (a bigger disk can't go on a smaller disk). Good luck!

[ Get Source Code ]


Title: Typing Test
Contributor: Michael Tartaglia (stonedstan@hotmail.com)
Contributor URL: http://www.geocities.com/SiliconValley/Horizon/5235
Details: 3.33 KB * Uploaded April 16 1998
Description: I really think this is neat - JavaScript will actually give you a typing test and at then tell you the results in words per minute! Very neat!

[ Get Source Code ]


Title: Where Born?
Details: 4.95 KB * Uploaded July 11 1997
Description: Go ahead - see if JavaScript can tell you where you were born.

[ Get Source Code ]


Title: Who? What? Where?
Details: 2.16 KB * Uploaded July 11 1997
Description: Just see if you can pass this test.

[ Get Source Code ]